import Vue from 'vue'
import Router from 'vue-router'

import systemUser from '@/views/SystemSet/SystemSet.vue'
import systemRole from '@/views/SystemSet/systemRole.vue'
import organization from '@/views/SystemSet/Organization.vue'

import questionCategory from '@/views/questionnaire/questionCategory.vue'
import questions from '@/views/questionnaire/questions.vue'
import questionnaire from '@/views/questionnaire/questionnaire.vue'

import healthPersonnel from '@/views/healthPersonnel.vue'
import newAssessment from '@/views/assessment/newAssessment.vue'

import homePage from '@/views/homePage.vue'

import orgKpi from '@/views/orgKpi.vue'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/homePage',
      name: 'homePage',
      component: homePage
    },
    {
      path: '/systemUser',
      name: 'systemUser',
      component: systemUser
    },
    {
      path: '/systemRole',
      name: 'systemRole',
      component: systemRole
    },
    {
      path: '/organization',
      name: 'organization',
      component: organization
    },
    {
      path: '/question',
      redirect: '/questionCategory'
    },
    {
      path: '/questionCategory',
      name: 'questionCategory',
      component: questionCategory
    },
    {
      path: '/questions',
      name: 'questions',
      component: questions
    },
    {
      path: '/questionnaire',
      name: 'questionnaire',
      component: questionnaire
    },
    {
      path: '/healthPersonnel',
      name: 'healthPersonnel',
      component: healthPersonnel
    },
    {
      path: '/newAssessment/',
      name: 'newAssessment',
      component: newAssessment
    },
    {
      path: '/orgKpi/',
      name: 'orgKpi',
      component: orgKpi
    }
  ]
})
